home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news text
| default
| |
99%
| file
| C source text
| default
| |
98%
| file
| C source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 6e | 74 70 64 32 2e 63 78 6f |Path: nn|tpd2.cxo|
|00000010| 2e 64 65 63 2e 63 6f 6d | 21 75 73 65 6e 65 74 0a |.dec.com|!usenet.|
|00000020| 46 72 6f 6d 3a 20 42 72 | 69 61 6e 20 48 69 62 62 |From: Br|ian Hibb|
|00000030| 65 72 74 20 3c 62 5f 68 | 69 62 62 65 72 74 40 63 |ert <b_h|ibbert@c|
|00000040| 73 63 33 32 2e 65 6e 65 | 74 2e 64 65 63 2e 63 6f |sc32.ene|t.dec.co|
|00000050| 6d 3e 0a 4e 65 77 73 67 | 72 6f 75 70 73 3a 20 63 |m>.Newsg|roups: c|
|00000060| 6f 6d 70 2e 6c 61 6e 67 | 2e 63 2b 2b 0a 53 75 62 |omp.lang|.c++.Sub|
|00000070| 6a 65 63 74 3a 20 52 65 | 3a 20 46 6c 6f 61 74 69 |ject: Re|: Floati|
|00000080| 6e 67 20 50 6f 69 6e 74 | 3a 20 4f 76 65 72 66 6c |ng Point|: Overfl|
|00000090| 6f 77 20 3f 0a 44 61 74 | 65 3a 20 39 20 46 65 62 |ow ?.Dat|e: 9 Feb|
|000000a0| 20 31 39 39 36 20 31 35 | 3a 32 39 3a 31 32 20 47 | 1996 15|:29:12 G|
|000000b0| 4d 54 0a 4f 72 67 61 6e | 69 7a 61 74 69 6f 6e 3a |MT.Organ|ization:|
|000000c0| 20 44 69 67 69 74 61 6c | 20 45 71 75 69 70 6d 65 | Digital| Equipme|
|000000d0| 6e 74 20 43 6f 72 70 6f | 72 61 74 69 6f 6e 0a 4d |nt Corpo|ration.M|
|000000e0| 65 73 73 61 67 65 2d 49 | 44 3a 20 3c 34 66 66 70 |essage-I|D: <4ffp|
|000000f0| 38 38 24 69 30 6f 40 6e | 6e 74 70 64 32 2e 63 78 |88$i0o@n|ntpd2.cx|
|00000100| 6f 2e 64 65 63 2e 63 6f | 6d 3e 0a 52 65 66 65 72 |o.dec.co|m>.Refer|
|00000110| 65 6e 63 65 73 3a 20 3c | 33 31 31 39 32 37 62 63 |ences: <|311927bc|
|00000120| 2e 33 31 38 35 39 35 40 | 31 39 38 2e 31 31 32 2e |.318595@|198.112.|
|00000130| 31 37 39 2e 31 36 3e 0a | 4e 4e 54 50 2d 50 6f 73 |179.16>.|NNTP-Pos|
|00000140| 74 69 6e 67 2d 48 6f 73 | 74 3a 20 70 65 6f 31 30 |ting-Hos|t: peo10|
|00000150| 31 32 5f 70 6f 72 74 32 | 2e 70 65 6f 2e 64 65 63 |12_port2|.peo.dec|
|00000160| 2e 63 6f 6d 0a 4d 69 6d | 65 2d 56 65 72 73 69 6f |.com.Mim|e-Versio|
|00000170| 6e 3a 20 31 2e 30 0a 43 | 6f 6e 74 65 6e 74 2d 54 |n: 1.0.C|ontent-T|
|00000180| 79 70 65 3a 20 74 65 78 | 74 2f 70 6c 61 69 6e 3b |ype: tex|t/plain;|
|00000190| 20 63 68 61 72 73 65 74 | 3d 75 73 2d 61 73 63 69 | charset|=us-asci|
|000001a0| 69 0a 43 6f 6e 74 65 6e | 74 2d 54 72 61 6e 73 66 |i.Conten|t-Transf|
|000001b0| 65 72 2d 45 6e 63 6f 64 | 69 6e 67 3a 20 37 62 69 |er-Encod|ing: 7bi|
|000001c0| 74 0a 58 2d 4d 61 69 6c | 65 72 3a 20 4d 6f 7a 69 |t.X-Mail|er: Mozi|
|000001d0| 6c 6c 61 20 31 2e 32 4e | 20 28 57 69 6e 64 6f 77 |lla 1.2N| (Window|
|000001e0| 73 3b 20 49 3b 20 31 36 | 62 69 74 29 0a 54 6f 3a |s; I; 16|bit).To:|
|000001f0| 20 63 6f 6e 66 75 73 65 | 64 40 63 2b 2b 2e 6f 6f | confuse|d@c++.oo|
|00000200| 70 0a 0a 63 6f 6e 66 75 | 73 65 64 40 63 2b 2b 2e |p..confu|sed@c++.|
|00000210| 6f 6f 70 20 28 63 6f 6e | 66 75 73 65 64 29 20 77 |oop (con|fused) w|
|00000220| 72 6f 74 65 3a 0a 3e 49 | 20 61 6d 20 63 6f 6e 66 |rote:.>I| am conf|
|00000230| 75 73 65 64 20 61 6e 64 | 20 61 20 62 69 74 20 65 |used and| a bit e|
|00000240| 6d 62 61 72 61 73 73 65 | 64 20 62 79 20 74 68 69 |mbarasse|d by thi|
|00000250| 73 20 70 72 6f 62 6c 65 | 6d 21 20 49 20 72 65 61 |s proble|m! I rea|
|00000260| 6c 6c 79 20 73 68 6f 75 | 6c 64 0a 3e 6b 6e 6f 77 |lly shou|ld.>know|
|00000270| 20 74 68 65 20 61 6e 73 | 77 65 72 20 62 75 74 20 | the ans|wer but |
|00000280| 2e 2e 2e 0a 3e 0a 3e 49 | 20 61 6d 20 75 73 69 6e |....>.>I| am usin|
|00000290| 67 20 42 43 2b 2b 20 34 | 2e 35 32 20 61 6e 64 20 |g BC++ 4|.52 and |
|000002a0| 61 6d 20 64 6f 69 6e 67 | 20 61 20 72 65 76 69 65 |am doing| a revie|
|000002b0| 77 20 6f 66 20 43 2b 2b | 20 75 73 69 6e 67 20 74 |w of C++| using t|
|000002c0| 68 65 20 74 65 78 74 20 | 0a 3e 22 4f 62 6a 65 63 |he text |.>"Objec|
|000002d0| 74 2d 4f 72 69 65 6e 74 | 65 64 20 50 72 6f 67 72 |t-Orient|ed Progr|
|000002e0| 61 6d 6d 69 6e 67 20 69 | 6e 20 43 2b 2b 22 20 62 |amming i|n C++" b|
|000002f0| 79 20 52 6f 62 65 72 74 | 20 4c 61 66 6f 72 65 2e |y Robert| Lafore.|
|00000300| 20 4f 6e 65 20 65 78 65 | 72 63 69 73 65 20 69 73 | One exe|rcise is|
|00000310| 0a 3e 67 69 76 69 6e 67 | 20 6d 65 20 61 20 66 6c |.>giving| me a fl|
|00000320| 6f 61 74 69 6e 67 20 70 | 6f 69 6e 74 20 6f 76 65 |oating p|oint ove|
|00000330| 72 66 6c 6f 77 20 65 72 | 72 6f 72 2e 20 42 61 73 |rflow er|ror. Bas|
|00000340| 69 63 61 6c 6c 79 20 74 | 68 65 20 75 73 65 72 20 |ically t|he user |
|00000350| 69 6e 70 75 74 20 69 73 | 0a 3e 61 20 6e 75 6d 62 |input is|.>a numb|
|00000360| 65 72 20 6f 66 20 67 61 | 6c 6c 6f 6e 73 20 6f 66 |er of ga|llons of|
|00000370| 20 77 61 74 65 72 20 61 | 6e 64 20 74 68 65 20 6f | water a|nd the o|
|00000380| 75 74 70 75 74 20 69 73 | 20 74 68 65 20 6e 75 6d |utput is| the num|
|00000390| 62 65 72 20 6f 66 20 63 | 75 62 69 63 0a 3e 66 65 |ber of c|ubic.>fe|
|000003a0| 65 74 20 74 68 65 20 77 | 61 74 65 72 20 6f 63 63 |et the w|ater occ|
|000003b0| 75 70 69 65 73 2e 0a 3e | 0a 3e 23 69 6e 63 6c 75 |upies..>|.>#inclu|
|000003c0| 64 65 3c 69 6f 73 74 72 | 65 61 6d 2e 68 3e 0a 3e |de<iostr|eam.h>.>|
|000003d0| 0a 3e 76 6f 69 64 20 6d | 61 69 6e 28 29 0a 3e 7b |.>void m|ain().>{|
|000003e0| 0a 3e 09 66 6c 6f 61 74 | 20 67 61 6c 73 3b 0a 3e |.>.float| gals;.>|
|000003f0| 09 63 69 6e 20 3c 3c 20 | 67 61 6c 73 3b 0a 3e 09 |.cin << |gals;.>.|
|00000400| 63 6f 75 74 20 3e 3e 20 | 65 6e 64 6c 20 3e 3e 20 |cout >> |endl >> |
|00000410| 67 61 6c 73 2f 37 2e 34 | 38 31 3b 0a 3e 7d 0a 3e |gals/7.4|81;.>}.>|
|00000420| 0a 3e 57 68 65 6e 20 74 | 68 65 20 69 6e 70 75 74 |.>When t|he input|
|00000430| 20 69 73 20 61 6e 20 69 | 6e 74 65 67 65 72 20 76 | is an i|nteger v|
|00000440| 61 6c 75 65 20 28 69 65 | 20 35 29 20 74 68 65 72 |alue (ie| 5) ther|
|00000450| 65 20 69 73 20 6e 6f 20 | 70 72 6f 62 6c 65 6d 20 |e is no |problem |
|00000460| 62 75 74 20 77 68 65 6e | 0a 3e 74 68 65 20 69 6e |but when|.>the in|
|00000470| 70 75 74 20 69 73 20 61 | 20 64 65 63 69 6d 61 6c |put is a| decimal|
|00000480| 20 76 61 6c 75 65 20 28 | 69 65 20 35 2e 35 29 20 | value (|ie 5.5) |
|00000490| 49 20 72 65 63 65 69 76 | 65 20 74 68 65 20 6f 76 |I receiv|e the ov|
|000004a0| 65 72 66 6c 6f 77 20 65 | 72 72 6f 72 2e 0a 3e 57 |erflow e|rror..>W|
|000004b0| 68 79 20 61 6d 20 61 20 | 72 65 63 65 69 76 69 6e |hy am a |receivin|
|000004c0| 67 20 74 68 65 20 65 72 | 72 6f 72 20 61 6e 64 20 |g the er|ror and |
|000004d0| 68 6f 77 20 64 6f 20 49 | 20 61 76 6f 69 64 20 74 |how do I| avoid t|
|000004e0| 68 69 73 20 69 6e 20 74 | 68 65 20 66 75 74 75 72 |his in t|he futur|
|000004f0| 65 3f 0a 3e 0a 3e 74 68 | 61 6e 6b 73 0a 3e 43 6f |e?.>.>th|anks.>Co|
|00000500| 6e 66 75 73 65 64 0a 0a | 57 65 6c 6c 2c 20 66 69 |nfused..|Well, fi|
|00000510| 72 73 74 20 6f 66 20 61 | 6c 6c 2c 20 79 6f 75 20 |rst of a|ll, you |
|00000520| 68 61 76 65 20 79 6f 75 | 72 20 73 74 72 65 61 6d |have you|r stream|
|00000530| 73 20 62 61 63 6b 77 61 | 72 64 73 2e 20 20 54 72 |s backwa|rds. Tr|
|00000540| 79 0a 0a 23 69 6e 63 6c | 75 64 65 3c 69 6f 73 74 |y..#incl|ude<iost|
|00000550| 72 65 61 6d 2e 68 3e 0a | 0a 76 6f 69 64 20 6d 61 |ream.h>.|.void ma|
|00000560| 69 6e 28 29 0a 7b 0a 20 | 20 20 20 20 20 20 20 66 |in().{. | f|
|00000570| 6c 6f 61 74 20 67 61 6c | 73 3b 0a 09 09 20 20 63 |loat gal|s;... c|
|00000580| 69 6e 20 3e 3e 20 67 61 | 6c 73 3b 0a 09 09 20 20 |in >> ga|ls;... |
|00000590| 63 6f 75 74 20 3c 3c 20 | 67 61 6c 73 2f 37 2e 34 |cout << |gals/7.4|
|000005a0| 38 31 20 3c 3c 20 65 6e | 64 6c 3b 0a 7d 0a 0a 42 |81 << en|dl;.}..B|
|000005b0| 75 74 20 49 20 61 73 73 | 75 6d 65 20 74 68 61 74 |ut I ass|ume that|
|000005c0| 20 77 61 73 20 6a 75 73 | 74 20 61 6e 20 65 72 72 | was jus|t an err|
|000005d0| 6f 72 20 69 6e 20 74 72 | 61 6e 73 63 72 69 70 74 |or in tr|anscript|
|000005e0| 69 6f 6e 20 62 65 63 61 | 75 73 65 20 74 68 65 20 |ion beca|use the |
|000005f0| 76 65 72 73 69 6f 6e 20 | 0a 79 6f 75 20 70 6f 73 |version |.you pos|
|00000600| 74 65 64 20 77 6f 75 6c | 64 6e 27 74 20 63 6f 6d |ted woul|dn't com|
|00000610| 70 69 6c 65 20 77 69 74 | 68 6f 75 74 20 65 72 72 |pile wit|hout err|
|00000620| 6f 72 73 2e 0a 0a 49 20 | 74 72 69 65 64 20 79 6f |ors...I |tried yo|
|00000630| 75 72 20 70 72 6f 67 72 | 61 6d 20 28 61 73 20 66 |ur progr|am (as f|
|00000640| 69 78 65 64 20 61 62 6f | 76 65 29 20 61 6e 64 20 |ixed abo|ve) and |
|00000650| 77 61 73 20 6e 6f 74 20 | 61 62 6c 65 20 74 6f 20 |was not |able to |
|00000660| 72 65 70 72 6f 64 75 63 | 65 20 79 6f 75 72 20 0a |reproduc|e your .|
|00000670| 70 72 6f 62 6c 65 6d 2e | 20 20 49 20 68 61 76 65 |problem.| I have|
|00000680| 20 68 61 64 20 70 72 6f | 62 6c 65 6d 73 20 77 69 | had pro|blems wi|
|00000690| 74 68 20 66 6c 6f 61 74 | 69 6e 67 20 70 6f 69 6e |th float|ing poin|
|000006a0| 74 20 63 6f 64 65 20 69 | 6e 20 74 68 65 20 70 61 |t code i|n the pa|
|000006b0| 73 74 20 77 68 65 6e 20 | 49 20 0a 73 65 6c 65 63 |st when |I .selec|
|000006c0| 74 65 64 20 61 20 34 38 | 36 20 61 73 20 74 68 65 |ted a 48|6 as the|
|000006d0| 20 63 6f 6d 70 69 6c 65 | 72 27 73 20 74 61 72 67 | compile|r's targ|
|000006e0| 65 74 20 70 72 6f 63 65 | 73 73 6f 72 20 74 79 70 |et proce|ssor typ|
|000006f0| 65 2e 20 20 49 66 20 79 | 6f 75 20 68 61 76 65 20 |e. If y|ou have |
|00000700| 61 20 0a 34 38 36 73 78 | 20 77 69 74 68 6f 75 74 |a .486sx| without|
|00000710| 20 61 20 66 6c 6f 61 74 | 69 6e 67 20 70 6f 69 6e | a float|ing poin|
|00000720| 74 20 70 72 6f 63 65 73 | 73 6f 72 20 61 6e 64 20 |t proces|sor and |
|00000730| 74 72 79 20 74 6f 20 72 | 75 6e 20 63 6f 64 65 20 |try to r|un code |
|00000740| 69 6e 74 65 6e 64 65 64 | 20 66 6f 72 20 0a 61 20 |intended| for .a |
|00000750| 34 38 36 44 58 20 77 68 | 69 63 68 20 64 6f 65 73 |486DX wh|ich does|
|00000760| 20 68 61 76 65 20 61 20 | 66 6c 6f 61 74 69 6e 67 | have a |floating|
|00000770| 20 70 6f 69 6e 74 20 70 | 72 6f 63 65 73 73 6f 72 | point p|rocessor|
|00000780| 2c 20 79 6f 75 20 63 61 | 6e 20 67 65 74 20 73 79 |, you ca|n get sy|
|00000790| 6d 70 74 6f 6d 73 20 0a | 72 61 6e 67 69 6e 67 20 |mptoms .|ranging |
|000007a0| 66 72 6f 6d 20 66 6c 6f | 61 74 69 6e 67 20 70 6f |from flo|ating po|
|000007b0| 69 6e 74 20 6f 76 65 72 | 66 6c 6f 77 73 20 74 6f |int over|flows to|
|000007c0| 20 6a 75 73 74 20 67 65 | 74 74 69 6e 67 20 74 68 | just ge|tting th|
|000007d0| 65 20 77 72 6f 6e 67 20 | 61 6e 73 77 65 72 2e 0a |e wrong |answer..|
|000007e0| 4d 61 6b 65 20 73 75 72 | 65 20 74 68 65 20 70 72 |Make sur|e the pr|
|000007f0| 6f 63 65 73 73 6f 72 20 | 74 79 70 65 20 75 6e 64 |ocessor |type und|
|00000800| 65 72 20 74 68 65 20 70 | 72 6f 6a 65 63 74 20 6f |er the p|roject o|
|00000810| 70 74 69 6f 6e 73 20 69 | 73 20 73 65 74 20 74 6f |ptions i|s set to|
|00000820| 20 61 20 32 38 36 20 0a | 61 6e 64 20 66 6f 72 63 | a 286 .|and forc|
|00000830| 65 20 61 20 72 65 62 75 | 69 6c 64 20 6f 66 20 61 |e a rebu|ild of a|
|00000840| 6c 6c 20 66 69 6c 65 73 | 2e 0a 0a 42 79 20 74 68 |ll files|...By th|
|00000850| 65 20 77 61 79 2c 20 49 | 20 61 6c 73 6f 20 75 73 |e way, I| also us|
|00000860| 65 64 20 74 68 65 20 42 | 6f 72 6c 61 6e 64 20 43 |ed the B|orland C|
|00000870| 2b 2b 20 56 34 2e 35 32 | 20 63 6f 6d 70 69 6c 65 |++ V4.52| compile|
|00000880| 72 2e 0a 0a 2d 2d 20 0a | 2a 2a 2a 2a 2a 2a 2a 2a |r...-- .|********|
|00000890| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000008a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000008b0| 2a 2a 2a 2a 2a 2a 2a 0a | 42 72 69 61 6e 20 48 69 |*******.|Brian Hi|
|000008c0| 62 62 65 72 74 20 20 62 | 5f 68 69 62 62 65 72 74 |bbert b|_hibbert|
|000008d0| 40 63 73 63 33 32 2e 65 | 6e 65 74 2e 64 65 63 2e |@csc32.e|net.dec.|
|000008e0| 63 6f 6d 0a 44 69 67 69 | 74 61 6c 20 45 71 75 69 |com.Digi|tal Equi|
|000008f0| 70 6d 65 6e 74 20 43 6f | 72 70 6f 72 61 74 69 6f |pment Co|rporatio|
|00000900| 6e 0a 41 6c 6c 20 6f 70 | 69 6e 69 6f 6e 73 20 65 |n.All op|inions e|
|00000910| 78 70 72 65 73 73 65 64 | 20 61 72 65 20 6d 79 20 |xpressed| are my |
|00000920| 6f 77 6e 20 61 6e 64 20 | 73 68 6f 75 6c 64 0a 6e |own and |should.n|
|00000930| 6f 74 20 62 65 20 61 73 | 73 75 6d 65 64 20 74 6f |ot be as|sumed to|
|00000940| 20 62 65 20 74 68 65 20 | 6f 70 69 6e 69 6f 6e 20 | be the |opinion |
|00000950| 6f 66 20 6d 79 20 65 6d | 70 6c 6f 79 65 72 0a 0a |of my em|ployer..|
|00000960| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+